<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改历史数据')"/>
    <th:block th:include="include :: datetimepicker-css"/>
    <th:block th:include="include :: select2-css"/>
    <th:block th:include="include :: bootstrap-select-css"/>
</head>
<style>
    input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }

</style>
<body>

<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-history-edit">
        <input id="id" name="id" type="hidden" th:value="${historyData.ID}"/>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">供应商统一社会信用代码：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="CREDIT_CODE"
                       th:value="${historyData.CREDIT_CODE}"  disabled="disabled" >
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">供应商名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="CREDIT_NAME"
                       th:value="${historyData.CREDIT_NAME}"  disabled="disabled" >
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">应付账款凭证金额：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="ORDER_AMT"
                       th:value="${historyData.ORDER_AMT}">
            </div>
        </div>

    </form>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<th:block th:include="include :: select2-js"/>

<script type="text/javascript">
    var prefix = ctx + 'middlesignYi';

    $(function () {

        $("#ORDER_DATE").datetimepicker({
            format: "yyyy-mm-dd hh:ii:ss",
            autoclose: true
        });


        $("#PAY_LAST_DATE_SINGLE").datetimepicker({
            format: "yyyy-mm-dd hh:ii:ss",
            autoclose: true
        });

    })


    function submitHandler() {
        if ($.validate.form()) {
            var data = $("#form-history-edit").serializeArray();
            $.operate.save(prefix + "/save", data);
            //parent.sum();
        }
    }

</script>

</body>
</html>